package dfl.bysj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Author: DFL
 * @Data: 2022/5/29:24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class UpdateBind {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer beforeStuUseId;
    private Integer beforeStuId;
    private Integer afterStuId;
    private Integer useId;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    public UpdateBind(Integer beforeStuId, Integer afterStuId, Integer useId) {

        this.beforeStuId = beforeStuId;
        this.afterStuId = afterStuId;
        this.useId = useId;
    }

    public UpdateBind() {
    }
}
